package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author ding
 * @since 2020-06-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_ship_price")
public class ShipPriceDo extends Model<ShipPriceDo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * jp_state 地区id
     */
    @TableField("state_id")
    private Integer stateId;

    /**
     * dimens 尺寸id
     */
    @TableField("dimens_id")
    private Integer dimensId;

    /**
     * 价格
     */
    @TableField("price")
    private Double price;

    @TableField(exist = false)
    private Integer originalPrice;

    /**
     * 是否使用
     */
    @TableField("active")
    private String active;

    /**
     * 价格版本
     */
    @TableField("version")
    private Integer version;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
